import { HttpClient, HttpServer } from "tsrpc";
import { ecs } from "../../../core/ecs/ECS";
import { DbUser } from "../../../tsrpc/shared/types/DbUser";


/** 网关服务器数据 */
@ecs.register('AccountModel')
export class AccountModelComp extends ecs.Comp {
    /** 在线用户数据 */
    users = new Map<number, DbUser>();

    /** 用户通行证信息 */
    ssoTokens: { [token: string]: { expiredTime: number, key: number } } = {};

    /** 服务管理器 */
    hsAccount: HttpServer = null!;
    /** 匹配服务器 Http 连接对象 */
    //hcMatch = new Map<string, HttpClient<ServiceTypeMatch>>();

    reset(): void {
        
    }
}